package com.xuzhiguang.baidu.pan.sdk.common.http;

import java.util.Map;

/**
 * @author xuzhiguang
 * @date 2020/6/25 21:42
 */
public class Response {

    private int statusCode;

    private byte[] content;

    private Map<String, String> headers;

    @Override
    public String toString() {
        String contentToString = new String(content);

        return "Response{" +
                "statusCode=" + statusCode +
                ", content=" + contentToString +
                ", headers=" + headers +
                '}';
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }
}
